import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询容器资料列表
export function listCont(query) {
  return request({
    url: '/wms/cont/list',
    method: 'get',
    params: query
  })
}

// 查询容器资料详细
export function getCont(contId) {
  return request({
    url: '/wms/cont/' + parseStrEmpty(contId),
    method: 'get'
  })
}

// 新增容器资料
export function addCont(data) {
  return request({
    url: '/wms/cont',
    method: 'post',
    data: data
  })
}

// 修改容器资料
export function updateCont(data) {
  return request({
    url: '/wms/cont',
    method: 'put',
    data: data
  })
}

// 删除容器资料
export function delCont(contId) {
  return request({
    url: '/wms/cont/' + contId,
    method: 'delete'
  })
}
